package com.xiaoyang.ssyx.cart.client;

import com.xiaoyang.ssyx.model.order.CartInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @AUTHOR XiaoYang
 * @DATE 2023/7/5-15:28
 * @DESCRIPTION TODO
 */
@FeignClient("service-cart")
public interface CartFeignClient {

    //获取当前用户购物车选中购物项
    @GetMapping("/api/cart/inner/getCartCheckedList/{userId}")
    List<CartInfo> getCartCheckedList(@PathVariable("userId") Long userId);

}
